package com.woniuxy.kaer.redis.util;

public class RedisKey {
    public static String REGISTER_CODE_KEY(String mobile){

        return "Register:code:mobile"+mobile;
    }
    public static String REGISTER_USER_CODE_STATE(String mobile){

        return "Register:code:state"+mobile;
    }
    public static String REGISTER_USER_CODE_KEY(String mobile){

        return "Register:code:mobile"+mobile;
    }
    public static String LOCK_ACCOUNT_BUSS(String account,String buss){
        return "lock:account:"+account+":buss:"+buss;
    }
    public static String LOCK_MOBILE_BUSS(String mobile,String buss){
        return "lock:mobile:"+mobile+":buss:"+buss;
    }

    public static String LOGIN_USER_CODE_KEY(String mobile){
        return "Login:code:mobile"+mobile;
    }

    public static String LOGIN_USER_CODE_STATE(String mobile){
        return "Login:code:state"+mobile;
    }

    public static String REGISTER_CODE_STATE(String mobile){
        return "Register:code:state"+mobile;
    }
    public static String ACCESS_EXPIRE(String accessToken){

        return "access:expire:"+accessToken;
    }
    /*************************csy********************************/
    public static String REFRESH_ACCESS_EXPIRE(String accessToken){

        return "refresh:access:expire:"+accessToken;
    }
    //商铺评分存储，商铺Id：评分
    public static  String SHOP_EVALUATE(Integer shopId){
        return "shop:evaluate:"+shopId;
    }
    //商铺三个月的完成订单数，预约订单数，销售额
    public static String SHOP_ORDER_INFO(Integer shopId){
        return "shop:order:info:"+shopId;
    }

    //用户商品收藏列表
    public static String userCollectList(Integer userId){
        return "user:collect:userId:"+userId;
    }
    //系统商品收藏排行榜
    public static String sysCollectRank(){
        return "sys:collect:rank";
    }
    //用户购物车(里面保存商品的id)
    public static String userShoppingList(Integer userId){
        return "user:shopping:userId:"+userId;
    }
    //用户购物车详情(保存商品的详细信息,数量)
    public static String userShoppingDetail(Integer userId,Integer productId){
        return "user:shopping:detail:userId:"+userId+":productId:"+productId;
    }
    public static String LOCK_TENANTS_MOBILE_BUSS(String mobile){
        return "lock:tenants:mobile:buss"+mobile;
    }
    public static String LOCK_ID_CARD_BUSS(String idCard){
        return "lock:idCard:buss"+idCard;
    }
    public static String Lock_SETTLED_APPLY_BUSS(String mobile){
        return "lock:settled:apply:buss"+mobile;
    }

    //商品id锁
    public static String LOCK_PRODUCTID(Integer productId){
        return "lock:productId:"+productId;
    }

    //退款申请id锁
    public static String LOCK_APPLYID(String refundId){
        return "lock:refundId:"+refundId;
    }

    public static String MANAGER_RESOURCE_LIST(Integer managerId) {
        return "manager:resource:list:managerId:"+managerId;
    }
}
